package com.ruoyi.supplier.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品相册业务对象
 *
 * @author ruoyi
 * @date 2023-09-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ProductAlbumBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Integer productAlbumId;

    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer productId;

    /**
     * 素材地址
     */
    @NotBlank(message = "素材地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 类型（1 图片 2视频）
     */
    @NotNull(message = "类型（1 图片 2视频）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 商户id
     */
    @NotNull(message = "商户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer merchantId;


}
